﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="QuanLy.aspx.cs"
    Inherits="Cucre.WebForm12" Title="MUARE.VN - Trang quản lý" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="page_content">
        <div style="padding-left: 6px;">
            <div class="clear">
            </div>
            <div class="br">
            </div>
            <div class="content_home">
                <%-- vùng thể hiện menu --%>
                <div class="ch_1 font">
                    <div class="l">
                        <div class="ll">
                            
                        </div>
                        <div class="lc">
                            <ul id="tab_menu">
                                <li id="tabmnu_1"><a href="QuanLy.aspx"><span class="tab_mnu_l_curent"></span><span
                                    class="tab_mnu_c_curent">Tin Khuyến Mãi&nbsp;</span><span class="tab_mnu_r_curent">
                                    </span></a></li>
                                <li id="tabmnu_4"><a href="quanlydondathang.aspx"><span class="tab_mnu_l"></span><span
                                    class="tab_mnu_c">Đơn Đặt Hàng&nbsp;</span> <span class="tab_mnu_r"></span></a>
                                </li>
                                <li id="tabmnu_2"><span class="tab_mnu_r"></span></li>
                                <li id="tabmnu_3"><a href="QuanLyDoanhNghiep.aspx"><span class="tab_mnu_l"></span><span
                                    class="tab_mnu_c">Doanh Nghiệp&nbsp;</span> <span class="tab_mnu_r"></span></a>
                                </li>
                                <li id="Li1"><a href="quanlythanhvien.aspx"><span class="tab_mnu_l"></span><span
                                    class="tab_mnu_c">THÀNH VIÊN&nbsp;</span> <span class="tab_mnu_r"></span></a>
                                </li>
                                <li id="Li2"><a href="QuanLyComment.aspx"><span class="tab_mnu_l"></span><span class="tab_mnu_c">
                                    COMMENT&nbsp;</span> <span class="tab_mnu_r"></span></a></li>
                                <li id="Li3"><a href="baocaothongke.aspx"><span class="tab_mnu_l"></span><span class="tab_mnu_c">
                                    THỐNG KÊ&nbsp;</span> <span class="tab_mnu_r"></span></a></li>
                            </ul>
                        </div>
                        <div class="lr">
                        </div>
                    </div>
                    <div class="r">
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <%-- het vung menu --%>
                <%-- vùng làm việc 
                --%>
                <div style="border: 1px solid #09F">
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                            </asp:ToolkitScriptManager>
                            <h1 align="center">
                                TRANG QUẢN LÝ TIN KHUYẾN MÃI</h1>
                            <div style="height: 20px" align="center">
                          
                            </div>
                            <div id="working_area">
                                <div>
                                    <div id="Select_City" align="center">
                                        Chọn thành phố : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="DropDownList1" runat="server" align="center" AutoPostBack="True"
                                            OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                                            <asp:ListItem>Hà Nội</asp:ListItem>
                                            <asp:ListItem>Hồ Chí Minh</asp:ListItem>
                                        </asp:DropDownList>
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        Loại Tin Khuyến Mãi :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="LoaiTinKMDropDownList" runat="server" align="center" AutoPostBack="true"
                                            OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">
                                            <asp:ListItem>Đang Khuyến Mãi</asp:ListItem>
                                            <asp:ListItem>Sắp Khuyến Mãi</asp:ListItem>
                                            <asp:ListItem>Tin Khuyến Mãi Chưa Duyệt</asp:ListItem>
                                            <asp:ListItem>Đã Kết Thúc</asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <%-- khu vực đang khuyến mãi--%>
                                <div style="height: 20px" align="center">
                                </div>
                                <h3 style="margin-top: 20px">
                                    Danh Sách Các Tin Khuyến Mãi :
                                </h3>
                                <asp:Label ID="LabelKhuyenMai" runat="server" ForeColor="Red"></asp:Label>
                                <div id="Gridview1" align="center">
                                    <asp:GridView ID="DangKhuyenMai_GridView" runat="server" AutoGenerateColumns="False"
                                        AllowPaging="True" BorderStyle="Groove" OnDataBound="DangKhuyenMai_GridView_DataBound"
                                        OnPageIndexChanging="DangKhuyenMai_GridView_PageIndexChanging" OnRowDeleting="DangKhuyenMai_GridView_RowDeleting"
                                        PageSize="10" OnSelectedIndexChanging="DangKhuyenMai_GridView_SelectedIndexChanging">
                                        <PagerStyle Font-Underline="True" Font-Bold="true" />
                                        <SelectedRowStyle BackColor="#DEDFFE" Font-Bold="true" ForeColor="#333333" Height="25px" />
                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="true" ForeColor="White" Height="25px" />
                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Height="20px" />
                                        <Columns>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="CheckDangKhuyenMai" runat="server" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="IDPRODUCT" HeaderText="ID" ReadOnly="True" SortExpression="IDPRODUCT">
                                            </asp:BoundField>
                                            <asp:BoundField DataField="PROVIDER_NAME" HeaderText="Provider" ReadOnly="True" SortExpression="PROVIDER_NAME" />
                                            <asp:BoundField DataField="Name_Product" HeaderText="Name" ReadOnly="True" SortExpression="Name_Product" />
                                            <asp:BoundField DataField="TIME_START" HeaderText="Time_Start" ReadOnly="True" SortExpression="TIME_START" />
                                            <asp:BoundField DataField="TIME_STOP" HeaderText="Time_Stop" ReadOnly="True" SortExpression="TIME_STOP" />
                                            <asp:BoundField DataField="PRICE" HeaderText="Price" ReadOnly="True" SortExpression="PRICE" />
                                            <asp:BoundField DataField="CITY" HeaderText="City" ReadOnly="True" SortExpression="CITY" />
                                            <asp:CommandField SelectText="View Detail" ShowSelectButton="true" ItemStyle-Font-Underline="True"
                                                ItemStyle-BorderColor="Blue" ItemStyle-ForeColor="Blue">
                                                <ItemStyle BorderColor="Blue" Font-Underline="True" ForeColor="Blue" />
                                            </asp:CommandField>
                                            <asp:CommandField DeleteText="Delete" ShowDeleteButton="true" ItemStyle-ForeColor="Blue"
                                                ItemStyle-Font-Underline="True" ItemStyle-Width="50" ItemStyle-HorizontalAlign="Center"
                                                ItemStyle-VerticalAlign="Middle">
                                                <ItemStyle Font-Underline="True" ForeColor="Blue" HorizontalAlign="Center" VerticalAlign="Middle"
                                                    Width="50px" />
                                            </asp:CommandField>
                                        </Columns>
                                    </asp:GridView>
                                </div>
                                <div style="height: 10px">
                                </div>
                                <div style="min-width: 300px" align="center">
                                    <asp:Button ID="SelectAll_DangKM_bt" runat="server" Text="Chọn Tất Cả" Height="30px"
                                        BorderStyle="Outset" BackColor="#DEDFFE" OnClick="SelectAll_DangKM_bt_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:Button ID="DeSelectAll_DangKM_bt" runat="server" Text="Bỏ Chọn Tất Cả" Height="30px"
                                        BorderStyle="Outset" BackColor="#DEDFFE" OnClick="DeSelectAll_DangKM_bt_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:Button ID="Delete_DangKM_bt" runat="server" Text="Xóa Sản Phẩm Đã Chọn" Height="30px"
                                        BorderStyle="Outset" BackColor="#DEDFFE" OnClientClick="return confirm('Bạn Có Chắc Chắn Muốn Xóa Các Tin Khuyến Mãi Đã Chọn?')"
                                        OnClick="Delete_DangKM_bt_Click" />
                                </div>
                                <%-- hết khu vực đang khuyến mãi--%>
                                <div style="height: 20px" align="center">
                                </div>
                                <div class="br">
                                    <hr />
                                </div>
                                <h3 style="margin-top: 20px" align="center">
                                    Thông Tin Chi Tiết Sản Phẩm</h3>
                                <div style="height: 20px">
                                </div>
                               
                                <asp:Table ID="Table1" runat="server">
                                 <asp:TableRow>
                                    <asp:TableCell align="right" Width="20%">
                           &nbsp;&nbsp;&nbsp;&nbsp; NƠI KHUYẾN MẠI:
                                    </asp:TableCell>
                                    <asp:TableCell ColumnSpan="6">
                                        <asp:DropDownList ID="CityDropDownList" runat="server" align="center" Width="100px">
                                            <asp:ListItem>Hà Nội</asp:ListItem>
                                            <asp:ListItem>Hồ Chí Minh</asp:ListItem>
                                        </asp:DropDownList>
                                    </asp:TableCell>
                                    </asp:TableRow> 
                                    
                               <asp:TableRow> 
                                      <asp:TableCell Width="20%" align="right">
                           &nbsp;&nbsp;&nbsp;&nbsp; DOANH NHGIỆP:
                                    </asp:TableCell>
                                    <asp:TableCell ColumnSpan="6">
                                        <asp:DropDownList ID="DoanhNghiep_DropDownList" runat="server" align="center">
                                            
                                        </asp:DropDownList>
                                    </asp:TableCell>
                                </asp:TableRow>
                                
                                    <asp:TableRow Width="790px">
                                        <asp:TableCell Width="20%" align="right">
                        TÊN SẢN PHẨM:                      
                                        </asp:TableCell>
                                        <asp:TableCell ColumnSpan="6">
                                            <asp:TextBox ID="txtTenSanPham" runat="server" Width="600px"></asp:TextBox>
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    
                                    <asp:TableRow Width="790px">
                                        <asp:TableCell Width="20%" align="right">
                        HÌNH ẢNH SẢN PHẨM:
                                        </asp:TableCell>
                                        <asp:TableCell ColumnSpan="6">
                                         
                                         <asp:TextBox ID="txtImagesSanPham" Text="images\Products\product1\" runat="server" Width="600px"></asp:TextBox>
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    
                                    <asp:TableRow Width="790px">
                                        <asp:TableCell align="right">
                        SLOGAN SẢN PHẨM:
                                        </asp:TableCell>
                                        <asp:TableCell ColumnSpan="6">
                                            <textarea runat="server" id="tareaSloganSanPham" name="areaSlognSP" rows="2" cols="20"
                                                style="width: 600px"></textarea>
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow Width="790px">
                                        <asp:TableCell align="right">
                        GIÁ SẢN PHẨM:
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="txtGiaSanPham" runat="server" Width="100px"></asp:TextBox>
                                            VNĐ
                                        </asp:TableCell>
                                        <asp:TableCell align="right">
                        GIẢM:
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="txtGiam" runat="server" Width="60px"></asp:TextBox>%
                                        </asp:TableCell>
                                        <asp:TableCell align="right">
                        SỐ LƯỢNG LỚN NHẤT :
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="txtMaxNumber" runat="server" Width="60px"></asp:TextBox>SP
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell align="right">
                        Ngày bắt đầu:
                                        </asp:TableCell>
                                        <asp:TableCell ColumnSpan="2">
                                            <asp:TextBox ID="txtNgayBatDau" runat="server"></asp:TextBox>
                                            (tháng /ngày /năm)
                                        </asp:TableCell>
                                        <asp:TableCell align="right">
                        Ngày kết thúc:
                                        </asp:TableCell>
                                        <asp:TableCell ColumnSpan="2">
                                            <asp:TextBox ID="txtNgayKetThuc" runat="server"></asp:TextBox>
                                            (tháng /ngày /năm)
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="3" align="center">
                        ĐIỀU KIỆN ÁP DỤNG
                                        </asp:TableCell>
                                        <asp:TableCell ColumnSpan="3" align="center">
                        TÍNH NĂNG NỔI BẬT
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell ColumnSpan="3" align="center">
                        <textarea runat="server" id="tareaDKAP" name="tareaDKAP" rows="2" cols="20" style="width:320px; height:200px"></textarea>
                        </asp:TableCell>
                        <asp:TableCell ColumnSpan="3" align="center">
                        <textarea runat="server" id="tareaTNNB" name="tareaTNNB" rows="2" cols="20" style="width:320px; height:200px"></textarea>
                        </asp:TableCell>
                    </asp:TableRow>
                   
                </asp:Table>
                  <div style="height:10px"></div>  
                <%-- vùng editor  --%>                

                 
             
                  <div style="height:10px" align="center"></div>                  
                  <div class="br">
                        <hr />
                    </div>   
                  <%-- <div style="border: 1px solid #09F" align="center">--%> 
                  <div align="center">
        <div style="height: 20px; vertical-align:top">
            <h3 align="left">
                <font style="font-size:larger"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Phần Nhận Xét</font></h3>
        </div>     
      <CE:Editor ID="Editor1" runat="server" Text="" ThemeType="Office2007" Height="600px"></CE:Editor>  
            </div>
             
             
            
             <div style="height:15px"></div>
                 
            <div align="center">
               <asp:Button ID="btSave1" runat="server"  Text="Đăng tin" Width="100px" Height="30px" BorderStyle="Outset" BackColor="#DEDFFE"
                         OnClientClick="return confirm('Bạn Có Chắc Chắn Muốn Đăng Tin Khuyến Mãi Này?')"  onclick="btSave1_Click"/>  &nbsp;&nbsp;&nbsp;&nbsp;            
               <asp:Button ID="btUpdate" runat="server" Text="Cập Nhật" Width="100px" Height="30px" BorderStyle="Outset" BackColor="#DEDFFE"
                             OnClientClick="return confirm('Bạn Có Chắc Chắn Muốn Cập Nhật Tin Khuyến Mãi Này?')"      onclick="btUpdate_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
               <asp:Button ID="btDelete" runat="server" Text="Xóa" Width="100px" Height="30px" BorderStyle="Outset" BackColor="#DEDFFE" OnClientClick="return confirm('Bạn Có Chắc Chắn Muốn Xóa Tin Khuyến Mãi Này?')"  onclick="btDelete_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
               <asp:Button ID="btApprove" runat="server" Text="Duyệt" Width="100px" Height="30px" BorderStyle="Outset" BackColor="#DEDFFE" 
                OnClientClick="return confirm('Tin Khuyến Mãi được duyệt sẽ hiện lên trong WebSite. Bạn Có Chắc Chắn Muốn Duyệt Tin Khuyến Mãi Này?')"     onclick="btApprove_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
               </div>
               <div style="height:10px"></div> 
            
            
             </div>
              
           </ContentTemplate>
                        </asp:UpdatePanel>
        </div>     
       
       </div>  
             
             
           
                 <%-- HẾT VÙNG LÀM VIỆC --%>              

                </div>
           
        <%--đường kẻ ngang phía dưới 
                 <div style="background: url(images/temp2_3.gif) no-repeat left bottom; padding-left: 18px;
                    height: 11px;">
                </div>--%>
    </div>
</asp:Content>
